package com.xc.stock.domain.basic.repository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.rp.spring.jpa.GenericJpaRepository;
import com.xc.stock.domain.basic.convert.AppVersionConvert;
import com.xc.stock.domain.basic.convert.IEntityPOConvert;
import com.xc.stock.domain.basic.entity.AppVersion;
import com.xc.stock.infrastructure.db.po.AppVersionPO;
import com.xc.stock.infrastructure.db.repo.AppVersionRepo;

import lombok.RequiredArgsConstructor;

/**
 * AppVersionRepository
 *
 * @author xlfd
 * @email xlfd@gmail.com
 * @created 2021/10/25
 */
@Repository
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AppVersionRepository extends SimplePoConvertEntityRepository<AppVersion, AppVersionPO, Integer> {
	final AppVersionRepo repo;

	final AppVersionConvert convert;

	@Override
	public GenericJpaRepository<AppVersionPO, Integer> repo() {
		return repo;
	}

	@Override
	public IEntityPOConvert<AppVersion, AppVersionPO> convert() {
		return convert;
	}
}
